<% unless lang.recently_added_forum_messages.empty? %>
	<div style="padding-top:10px; font-size:14px; border-bottom:1px solid #ccc; margin-bottom:5px;">
	  <div style="<%=tr8n_style_attribute_tag('float', 'right')%>; font-size:12px;">
	     <%=link_to(tra('view all'), :controller => "/tr8n/forum", :action => :index, :locale => lang.locale)%>
	  </div>
	  
		<%=tr8n_toggler_tag("forum_content_#{lang.id}", "", false)%>
		<%=tra("Recent Discussions") %> 
		<span style="color:#ccc; font-size:12px;"><%=tra("last {count}", nil, :count => 5)%></span>
	</div>
	
	<div id="forum_content_<%=lang.id%>" style="display:none">
		<table style="width:100%; background-color:white; border:1px dotted #ccc;">
		  <% lang.recently_added_forum_messages.each do |message| %>
		    <% style = (message == lang.recently_added_forum_messages.last ? "" : "border-bottom:1px dotted #ccc;" ) %>  
		    <tr style="<%=style%>">
	        <%= render :partial => "/tr8n/forum/message", :locals => {:message => message} %>
					<td style="<%=tr8n_style_attribute_tag('float', 'right')%>; <%=tr8n_style_directional_attribute_tag('padding', 'right', '5px')%>;">
						<%=link_to(tra("view"), :controller => "/tr8n/forum", :action => :topic, :locale => lang.locale, :topic_id => message.topic.id)%>
					</td> 
		    </tr>
		  <% end %>
		</table>
	</div>
<% end %>